package cn.tedu.liang;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LiangConfig {

    @Bean
    public FeatherFan fan1(){
        return new FeatherFan();
    }
    @Bean
    public FeatherFan fan2(){
        return new FeatherFan();
    }

    @Bean
    public ZhuGeLiang liang(FeatherFan fan1){
        ZhuGeLiang zhuGeLiang=new ZhuGeLiang();
        zhuGeLiang.setFeatherFan(fan1);
        return zhuGeLiang;
    }



}
